/*
 *
 *      Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the pig4cloud.com developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: lengleng (wangiegie@gmail.com)
 *
 */

package com.pig4cloud.pigx.admin.api.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 四乱整治统计返回值
 *
 * @author lfx
 * @since 2018-01-22
 */
@Data
@Schema(description = "四乱整治统计返回值")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ChaosGovernStatisticsVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 未整改数
     */
    private Integer notRectified;

    /**
     * 总数
     */
    private Integer sum;

    /**
     * 四乱类型统计集合
     */
    private List<ChaosGovernStatisticsType> typeRatioList;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class ChaosGovernStatisticsType {

        /**
         * 类型
         */
        private String type;

        /**
         * 数量
         */
        private Integer count;

        /**
         * 占比
         */
        private Double ratio;
    }
}
